home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / infoserv / www / cern / dev / www-talk.9301-9306.Z / www-talk.9301-9306 / text0284.txt < prev    next >
Encoding:
Text File  |  1995-04-24  |  2.0 KB  |  59 lines

  1.  
  2. >  Hi.  I am porting WWW to BSDI.  So far mostly so good, here are some
  3. >  notes.
  4.  
  5. Duuhh. What's BSDI?  {:-O
  6.  
  7. >  There are some stray dependencies in the Line Mode makefiles that point
  8. >  hard coded paths at /tmp for making stuff.  /tmp here is tiny, so I
  9. >  put the stuff in $(HOME)/tmp, but that didn't quite do the job.
  10.  
  11. It is a question of changing the ONJ macro to point to somewhere where
  12. there is space. It used to be the source directory, but some people
  13. want to build separately from a read-only source mount. So we put the OBJ
  14. macros in.
  15.  
  16. >  It took some amount of fiddling to get everything to build in the
  17. >  right place, I hacked at it until it all compiled ok but will have
  18. >  to go back and see what exactly it was that I did...
  19.  
  20. If you could mail me back the diffs I'll try to get them into
  21. the next version.
  22.  
  23. >  HTFile.c didn't compile until I commented out one of the two times 
  24.  
  25. >  that "tcp.h" was included - the compiler complained about a duplicate
  26. >  definition of "struct stat".
  27.  
  28. Ooops.. sorry, fixed.  I think you mean that <stat.h> was included
  29. explicitly once and once implcitly via  "tcp.h".
  30.   
  31.  
  32. >  After all that it compiles fine and seems to work, and 'www -source'
  33. >  prints out what looks like real genuine HTML sources.  However, it
  34. >  appears that there's some critical place where TOUPPER is not working
  35. >  right, since the lower-case <a href=foo:bar>foobar</a> tags don't
  36. >  get recognized, and the upper-case <TITLE>foobar</TITLE> tags do.  
  37.  
  38. >  This kind of ruins the hypertext effect :)
  39.  
  40. That is official BSD for you: toupper() doesn't work unless the isalpha()
  41. is true. You need to turn on the macros at the bottom of tcp.h
  42. for your platform.  What is the system-specific predefined cpp macro
  43. which we can #ifdef on? So far we have:
  44.  
  45.     #if defined(pyr) || defined(mips)
  46.       /* Pyramid and Mips can't uppercase non-alpha */
  47.     #define TOLOWER(c) (isupper(c) ? tolower(c) : (c))
  48.     #define TOUPPER(c) (islower(c) ? toupper(c) : (c))
  49.     #else
  50.     #define TOLOWER(c) tolower(c)
  51.     #define TOUPPER(c) toupper(c)
  52.     #endif /* pyr || mips */
  53.  
  54.  
  55. Thanks for the comments....
  56.  
  57.     Tim
  58.  
  59.